-
Notifications
You must be signed in to change notification settings - Fork 85
Conversation
Added addGeofence, clearGeofences and getGeofenceState to allow up to four geofences to be defined. The geofence status can also be routed to one of the PIO pins and used as an interrupt etc..
Looks good. Couple problems:
|
Ok, it works, but only after a few tries (resetting board to re-send command). Not sure why? |
Hi Nathan, |
Ah! I re-read the CFG-NAV5 section and agree with you. There's no reading, just set the bit to apply the changes: So I don't think we need to do a read/mask/set (nor could we). I'm sure you know this but we can use u-center to inspect the packets it uses to verify anything ambiguous. I would have a look at the packets when we change the dyn model vs the min elevation setting and see what u-center does. But my foot is currently on a bouncy seat and my ZED-F9P is just out of reach... |
I suspect my issue may be that the packet might not be acking, or failing, or something related. I saw failures with your low power PR because I was using the ZED-F9P (which doesn't support low power -CFG-RXM packets) with silent failure. I need to look into how we're handling NACKs. |
OK - no probs. I'll run some duplicate tests here in the morning and will let you know what I find. Glad you are putting your foot to good use! |
Hi Nathan (@nseidle),
The thing is... setUART1Output or setI2COutput essentially do the same thing but I don't see problems there. Mind you, I don't actually bother checking that those calls return true! |
Closing this for now until I understand the root cause of the timeout failures. I'll re-submit from a fresh fork. |
Hi Nathan (@nseidle),
Here's a PR which adds a new function: setDynamicModel.
(Apologies. This PR also seems to include the changes for PR #50. Clearly I don't yet know how to use branches correctly!)
setDynamicModel uses the UBX-CFG-NAV5 message to set the navigation model settings (dynamic platform model) to: PORTABLE, STATIONARY, PEDESTRIAN, AUTOMOTIVE, SEA, AIRBORNE1g, AIRBORNE2g, AIRBORNE4g, WRIST, or BIKE.
This is essential for M8 receivers launched on high altitude balloons - you'll get very strange position fixes if you don't change the model to AIRBORNE1g.
I've included an example and have tested it on the Qwiic ZOE-M8Q breakout.
Enjoy!
Paul